home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 915 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  2.2 KB

  1. From: davew@trigati.cs.haverford.edu (David G. Wonnacott)
  2. Message-ID: <DAVEW.96Mar29155115@trigati.cs.haverford.edu>
  3. X-Original-Date: 29 Mar 1996 20:51:15 GMT
  4. Path: in1.uu.net!bounce-back
  5. Date: 30 Mar 96 06:01:46 GMT
  6. Approved: fjh@cs.mu.oz.au
  7. Newsgroups: comp.std.c++
  8. Subject: Re: Rationale behind disallowal of non-const reference to rvalue
  9. Followup-To: comp.std.c++
  10. Organization: Bryn Mawr and Haverford College NetNews
  11. References: <DAVEW.96Mar27195129@trigati.cs.haverford.edu>
  12.     <KANZE.96Mar29121910@gabi.gabi-soft.fr>
  13. In-Reply-To: kanze@gabi-soft.fr's message of 29 Mar 1996 16:09:56 GMT
  14. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  15.     iQBFAgUBMVzOauEDnX0m9pzZAQFc2AF/fy27QOuIdaX4IF+2Ay3vAjKvVe8MUYpE
  16.     6EnXj7pNc/bD7oiuqHs030UeaRkXHfFn
  17.     =s7u3
  18.  
  19. In article <KANZE.96Mar29121910@gabi.gabi-soft.fr> kanze@gabi-soft.fr (J. Kanze
  20. ) writes:
  21.  
  22.    From: kanze@gabi-soft.fr (J. Kanze)
  23.    Newsgroups: comp.std.c++
  24.    Date: 29 Mar 1996 16:09:56 GMT
  25.  
  26.    First: it wasn't the committee's decision (except in so far as they
  27.    didn't change the base document).  This was illegal in the ARM.
  28.  
  29. I shouldn't have suggested the committee invented it.
  30.  
  31. The example you cite from p. 86 of the "Design & Evolution of C++"
  32. does show a case in which the programmer doesn't get what they wanted.
  33. I guess I'm just complaining because I'm used to the old approach of
  34. "If it might be useful but is usually a mistake, make it a warning,
  35. not an error".  (For example, the ever popular "if (a = 5) ...").
  36.  
  37. The way the standard is written, I fear that this will become an
  38. error, rather than a warning, in the near future.  My impression is
  39. that most compiler writers use the interpretation "if the standard
  40. says its illegal, make it an error."  I guess I'll go focus my
  41. attention on the folks who are working on g++, in hope of ensuring
  42. that at least g++ will continue to compile our code...
  43.  
  44. Dave W
  45. ---
  46. [ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
  47. [ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
  48. [ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
  49. [ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
  50. [ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]
  51.